package com.data.center.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.data.center.dto.OrganizationDto;
import com.data.center.entity.Organization;
import com.data.center.entity.foreignDemo.Children1;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//@Mapper
public interface OrganizationMapper extends BaseMapper<Organization> {

    void insertOrganization(OrganizationDto organization);
    List<OrganizationDto> findOrganization(String name, String abbreviation);

    void deleteOrganization(String organizationId);
    OrganizationDto selectOrganizationById(String organizationId);
    List<OrganizationDto> selectAllOrganizations();
    OrganizationDto getByName(String name);
    void updateOrganization(OrganizationDto organizationDTO);
    void physicalDelete(String organizationId);
    OrganizationDto findById(String id);
}

